package com.wn.icloud.auth.client.remote.fallback;

import com.wn.icloud.auth.client.remote.RemoteServiceAuthService;
import com.wn.icloud.common.msg.ObjectRestResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author kyy
 * @date 2019/03/27
 */
@Component
@Slf4j
public class RemoteServiceAuthServiceFallback implements RemoteServiceAuthService {

    @Override
    public ObjectRestResponse<List<String>> getAllowedClient(String serviceId, String secret) {
        log.error("调用{}异常{},{}", "getAllowedClient", serviceId, secret);
        return null;
    }

    @Override
    public ObjectRestResponse getAccessToken(String clientId, String secret) {
        log.error("调用{}异常{},{}", "getAccessToken", clientId, secret);
        return null;
    }

    @Override
    public ObjectRestResponse<byte[]> getServicePublicKey(String clientId, String secret) {
        log.error("调用{}异常{},{}", "getServicePublicKey", clientId, secret);
        return null;
    }

    @Override
    public ObjectRestResponse<byte[]> getUserPublicKey(String clientId, String secret) {
        log.error("调用{}异常{},{}", "getUserPublicKey", clientId, secret);
        return null;
    }

    @Override
    public ObjectRestResponse<String> getTestToken(String userName, String userId) {
        log.error("调用{}异常{},{}", "getTestToken", userName, userId);
        return null;
    }

}
